<%@ Page Language="C#" MasterPageFile="~/SiteMaster.master" AutoEventWireup="true"
    CodeFile="OrderDetailNew.aspx.cs" Inherits="OrderDetailNew" Title="Your Purchase" %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <script type="text/javascript">
        function SignInValidate() {

            var UserName = document.getElementById('<%= LoginControl1.FindControl("UserName").ClientID %>').value;
            var Password = document.getElementById('<%= LoginControl1.FindControl("Password").ClientID %>').value;
            var UserNameLabel = document.getElementById('<%= LoginControl1.FindControl("UserNameLabel").ClientID %>');
            var PasswordLabel = document.getElementById('<%= LoginControl1.FindControl("PasswordLabel").ClientID %>');
            var LoginError = document.getElementById('<%= LoginControl1.FindControl("LoginError").ClientID %>');
            var Errcolor = "red";
            var mycolor = "black";
            var ErrorString = "";
            if (UserName == '' || UserName == "You@domain.com") {
                UserNameLabel.style.color = Errcolor;
                ErrorString = "Error";

            }
            else
                UserNameLabel.style.color = mycolor;
            if (Password == '') {
                PasswordLabel.style.color = Errcolor;
                ErrorString = "Error";
            }
            else
                PasswordLabel.style.color = mycolor;

            if (ErrorString != "") {
                LoginError.innerHTML = "Please verify the highlighted fields.";
                return false;
            }
            return true;

        }
    </script>

    <script type="text/javascript">
        function OrderDetailsValidate() {
            var Errcolor = "red";
            var mycolor = "black";
            var ErrorString = "";
            var ErrorStringPerInfo = "";



            if ('<%= Session["username"] %>' == '') {

                var txtName = document.getElementById('<%= txtName.ClientID %>').value;
                var lbltxtName = document.getElementById('<%= lbltxtName.ClientID %>');
                var txtEmail = document.getElementById('<%= txtEmail.ClientID %>').value;
                var lbltxtEmail = document.getElementById('<%= lbltxtEmail.ClientID %>');
                var txtPassword = document.getElementById('<%= txtPassword.ClientID %>').value;
                var lbltxtPassword = document.getElementById('<%= lbltxtPassword.ClientID %>');
                var txtConfirmPassword = document.getElementById('<%= txtConfirmPassword.ClientID %>').value;
                var lbltxtConfirmPassword = document.getElementById('<%= lbltxtConfirmPassword.ClientID %>');
                var CreateAccount = document.getElementById('<%= CreateAccount.ClientID %>');
                var OrderError = document.getElementById('<%= OrderError.ClientID %>');
                if (txtName == '') {
                    lbltxtName.style.color = Errcolor;
                    ErrorStringPerInfo = "Error";
                }
                else
                    lbltxtName.style.color = mycolor;
                if (txtEmail == '') {
                    lbltxtEmail.style.color = Errcolor;
                    ErrorStringPerInfo = "Error";
                }
                else
                    lbltxtEmail.style.color = mycolor;
                if (txtPassword == '') {
                    lbltxtPassword.style.color = Errcolor;
                    ErrorStringPerInfo = "Error";
                }
                else
                    lbltxtPassword.style.color = mycolor;
                if (txtConfirmPassword == '') {
                    lbltxtConfirmPassword.style.color = Errcolor;
                    ErrorStringPerInfo = "Error";
                }
                else
                    lbltxtConfirmPassword.style.color = mycolor;
                var filter = /^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$/;
                if (!filter.test(txtEmail)) {
                    ErrorStringPerInfo = "Error";
                    lbltxtEmail.style.color = Errcolor;
                }
                else
                    lbltxtEmail.style.color = mycolor;

                var filter2 = /^\w{6,50}/;
                if (!filter2.test(txtPassword)) {
                    lbltxtPassword.style.color = Errcolor;
                    ErrorStringPerInfo = "Error";
                }
                else
                    lbltxtPassword.style.color = mycolor;
                if (txtPassword != txtConfirmPassword) {
                    lbltxtPassword.style.color = Errcolor;
                    lbltxtConfirmPassword.style.color = Errcolor;
                    ErrorStringPerInfo = "Error";
                }
                ////////////////////////////////////////////////////////////////////////////
                var radio = document.getElementById('<%= rbtnPaymentType.ClientID %>');
                var inputArr = radio.getElementsByTagName('input');

                for (var i = 0; i < inputArr.length; i++) {
                    if (inputArr[i].checked) {
                        var rbtnValue = inputArr[i].value;

                    }

                }

                if (rbtnValue == "0") {
                    var firstName = document.getElementById('<%= firstName.ClientID %>').value;
                    var lblfirstName = document.getElementById('<%= lblfirstName.ClientID %>');
                    if (firstName == '') {
                        lblfirstName.style.color = Errcolor;
                        ErrorString = "Error";

                    }
                    else
                        lblfirstName.style.color = mycolor;


                    var lastName = document.getElementById('<%= lastName.ClientID %>').value;
                    var lbllastName = document.getElementById('<%= lbllastName.ClientID %>');
                    if (lastName == '') {
                        lbllastName.style.color = Errcolor;
                        ErrorString = "Error";

                    }
                    else
                        lbllastName.style.color = mycolor;


                    var creditCardNumber = document.getElementById('<%= creditCardNumber.ClientID %>').value;
                    var lblcreditCardNumber = document.getElementById('<%= lblcreditCardNumber.ClientID %>');
                    if (creditCardNumber == '') {
                        lblcreditCardNumber.style.color = Errcolor;
                        ErrorString = "Error";

                    }
                    else
                        lblcreditCardNumber.style.color = mycolor;

                    var cvv2Number = document.getElementById('<%= cvv2Number.ClientID %>').value;
                    var lblcvv2Number = document.getElementById('<%= lblcvv2Number.ClientID %>');
                    if (cvv2Number == '') {
                        lblcvv2Number.style.color = Errcolor;
                        ErrorString = "Error";
                    }
                    else
                        lblcvv2Number.style.color = mycolor;

                    var address1 = document.getElementById('<%= address1.ClientID %>').value;
                    var lbladdress1 = document.getElementById('<%= lbladdress1.ClientID %>');
                    if (address1 == '') {
                        lbladdress1.style.color = Errcolor;
                        ErrorString = "Error";
                    }
                    else
                        lbladdress1.style.color = mycolor;




                    var city = document.getElementById('<%= city.ClientID %>').value;
                    var lblcity = document.getElementById('<%= lblcity.ClientID %>');
                    if (city == '') {
                        lblcity.style.color = Errcolor;
                        ErrorString = "Error";
                    }
                    else
                        lblcity.style.color = mycolor;

                    var Zip = document.getElementById('<%= Zip.ClientID %>').value;
                    var lblZip = document.getElementById('<%= lblZip.ClientID %>');
                    if (city == '') {
                        lblZip.style.color = Errcolor;
                        ErrorString = "Error";
                    }
                    else
                        lblZip.style.color = mycolor;


                    var filter1 = /^\d{5}([\-]\d{4})?$/;
                    if (!filter1.test(Zip)) {
                        lblZip.style.color = Errcolor;
                        ErrorString = "Error";
                    } else
                        lblZip.style.color = mycolor;
                }


                if (ErrorString != "") {

                    OrderError.innerHTML = "Please verify the highlighted fields.";
                    if (ErrorStringPerInfo != "") {

                        CreateAccount.innerHTML = "Please verify the highlighted fields.";
                    }
                    else {

                        CreateAccount.innerHTML = "";
                    }
                    return false;
                }
                else {

                    if (ErrorStringPerInfo != "") {

                        OrderError.innerHTML = "";
                        CreateAccount.innerHTML = "Please verify the highlighted fields.";
                        return false;
                    }
                }

            } ///////////////// session null not
            else {

                var OrderError = document.getElementById('<%= OrderError.ClientID %>');
                var radio = document.getElementById('<%= rbtnPaymentType.ClientID %>');
                var inputArr = radio.getElementsByTagName('input');

                for (var i = 0; i < inputArr.length; i++) {
                    if (inputArr[i].checked) {
                        var rbtnValue = inputArr[i].value;

                    }

                }
                if (rbtnValue == "0") {
                    var firstName = document.getElementById('<%= firstName.ClientID %>').value;
                    var lblfirstName = document.getElementById('<%= lblfirstName.ClientID %>');
                    if (firstName == '') {
                        lblfirstName.style.color = Errcolor;
                        ErrorString = "Error";

                    }
                    else
                        lblfirstName.style.color = mycolor;


                    var lastName = document.getElementById('<%= lastName.ClientID %>').value;
                    var lbllastName = document.getElementById('<%= lbllastName.ClientID %>');
                    if (lastName == '') {
                        lbllastName.style.color = Errcolor;
                        ErrorString = "Error";

                    }
                    else
                        lbllastName.style.color = mycolor;


                    var creditCardNumber = document.getElementById('<%= creditCardNumber.ClientID %>').value;
                    var lblcreditCardNumber = document.getElementById('<%= lblcreditCardNumber.ClientID %>');
                    if (creditCardNumber == '') {
                        lblcreditCardNumber.style.color = Errcolor;
                        ErrorString = "Error";

                    }
                    else
                        lblcreditCardNumber.style.color = mycolor;

                    var cvv2Number = document.getElementById('<%= cvv2Number.ClientID %>').value;
                    var lblcvv2Number = document.getElementById('<%= lblcvv2Number.ClientID %>');
                    if (cvv2Number == '') {
                        lblcvv2Number.style.color = Errcolor;
                        ErrorString = "Error";
                    }
                    else
                        lblcvv2Number.style.color = mycolor;

                    var address1 = document.getElementById('<%= address1.ClientID %>').value;
                    var lbladdress1 = document.getElementById('<%= lbladdress1.ClientID %>');
                    if (address1 == '') {
                        lbladdress1.style.color = Errcolor;
                        ErrorString = "Error";
                    }
                    else
                        lbladdress1.style.color = mycolor;




                    var city = document.getElementById('<%= city.ClientID %>').value;
                    var lblcity = document.getElementById('<%= lblcity.ClientID %>');
                    if (city == '') {
                        lblcity.style.color = Errcolor;
                        ErrorString = "Error";
                    }
                    else
                        lblcity.style.color = mycolor;

                    var Zip = document.getElementById('<%= Zip.ClientID %>').value;
                    var lblZip = document.getElementById('<%= lblZip.ClientID %>');
                    if (city == '') {
                        lblZip.style.color = Errcolor;
                        ErrorString = "Error";
                    }
                    else
                        lblZip.style.color = mycolor;


                    var filter1 = /^\d{5}([\-]\d{4})?$/;
                    if (!filter1.test(Zip)) {
                        lblZip.style.color = Errcolor;
                        ErrorString = "Error";
                    } else
                        lblZip.style.color = mycolor;
                }


            }
            ///////////////////////
            if (ErrorString != "") {

                OrderError.innerHTML = "Please verify the highlighted fields.";
                return false;
            }

            return true;

        }</script>

    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
        <ContentTemplate>
            <link href="CSS/ValidationSummary.css" rel="stylesheet" type="text/css" />

            <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.3.0/jquery.min.js"></script>

            <script language="javascript" type="text/javascript">

                // Get the PageRequestManager instance
                var pageRequest = Sys.WebForms.PageRequestManager.getInstance();
                // Add the beginRequest Event
                pageRequest.add_beginRequest(beginRequest);
                // Add the endRequest Event
                pageRequest.add_endRequest(endRequest)

                // Handle the Begin event
                function beginRequest(sender, eventArgs) {
                    // Get the button
                    var Button1 = $get('<%=PayButton.ClientID %>')
                    var Button2 = $get('<%=lnkbtnCancel.ClientID %>')
                    // Set its text to Loading
                    //  Button1.value = 'Loading......';
                    // Disable the Button
                    Button1.disabled = true
                    Button2.disabled = true
                }

                function endRequest(sender, eventArgs) {
                    // Get the Button
                    var Button1 = $get('<%=PayButton.ClientID %>')
                    var Button2 = $get('<%=lnkbtnCancel.ClientID %>')

                    // Enable it
                    Button1.disabled = false;
                    Button2.disabled = false;
                }

            </script>

            <style type="text/css">
                body
                {
                    font-family: verdana, Helvetica, sans-serif;
                }
                #status
                {
                    font-size: 11px;
                    margin: 10px;
                }
                .availablecss
                {
                    background-color: #CEFFCE;
                    border: 1px solid green;
                }
                .notavailablecss
                {
                    background-color: #FFD9D9;
                    border: 1px solid red;
                }
            </style>

            <script type="text/javascript">
                function checkUserDuplication() {

                    var uname = $("#<%= txtEmail.ClientID %>");

                    var msgbox = $("#<%= status.ClientID %>");

                    if (uname.val().length > 0) {

                        $.ajax({

                            type: "POST",
                            url: "OrderDetailNew.aspx/CheckUserName",
                            data: "{'args': '" + uname.val() + "'}",
                            contentType: "application/json; charset=utf-8",
                            dataType: "json",

                            success: function(msg) {

                                if (msg.d == 'Available') {
                                    uname.removeClass("notavailablecss");
                                    //                                    uname.addClass("availablecss");
                                    //msgbox.html('<img src="Images/a.png"> <font color="Green"> Available </font>');

                                    msgbox.html('');

                                }
                                else {
                                    uname.removeClass("availablecss");
                                    uname.addClass("notavailablecss");
                                    msgbox.html(msg.d);

                                }
                            }
                        });
                    }
                    else {

                        uname.addClass("notavailablecss");
                    }

                }

                function ValidateForm() {

                    var err = document.getElementById('<%=errmsg1.ClientID %>');
                    err.innerHTML = "";
                    var off = document.getElementById('<%=cvv2Number.ClientID %>');

                    if (off.value != parseInt(off.value)) {
                        off.value = "";

                        err.innerHTML = "Digits Only";
                        return false;
                    }



                    return true;

                } 


            </script>

            <script type="text/javascript">
                function CloseGiftWindow() {
                    $find('divAuthentication').hide();
                    return false;
                }

                function ExpiryValidator() {

                    var month = document.getElementById('<%=hdnMonth.ClientID %>').value;
                    var year = document.getElementById('<%=hdnYear.ClientID %>').value;



                    var dropdownmonth = document.getElementById('<%=expDateMonth.ClientID %>').value;
                    var dropdownYear = document.getElementById('<%=expDateYear.ClientID %>').value;


                    if (parseInt(dropdownYear) < parseInt(year)) {

                        document.getElementById("divMonthYearErr").innerHTML = "Please select year greater than or equal to current year";
                        return;
                    }
                    else if (parseInt(dropdownYear) == parseInt(year)) {
                        if (parseInt(dropdownmonth) < parseInt(month)) {
                            document.getElementById("divMonthYearErr").innerHTML = "Please select month greater than or equal to current month";
                            return;
                        }
                        else {
                            document.getElementById("divMonthYearErr").innerHTML = "";
                        }
                    }
                    else {
                        document.getElementById("divMonthYearErr").innerHTML = "";
                    }
                }
                function validation() {
                    if (document.getElementById("divMonthYearErr").innerHTML != "") {
                        return false;
                    }
                }

                //                function swapDivs() {
                //                    var objOff = document.getElementById('<%=panBeforeLogin.ClientID %>');
                //                    var objOn = document.getElementById('<%=panLogin.ClientID %>');
                //                    objOff.style.display = "none";
                //                    objOn.style.display = "block";
                //                    return false;
                //                }
                $(document).ready(function() {
                    $("#<%= txtQuantity.ClientID %>").keypress(function(e) {
                        if (e.which != 8 && e.which != 0 && e.which != 13 && (e.which < 48 || e.which > 57)) {
                            var num = document.getElementById('<%= txtQuantity.ClientID %>');
                            num.value = "";
                            $("#errmsg").html("Digits Only").show().fadeOut("slow");
                            return false;
                        }
                    });

                    $('#<%= CrditeCardTable.ClientID %>').find('input[type="text"]').keypress(function(e) {
                        if (e.which == 13) {
                            $('#<%= PayButton.ClientID %>').click();
                            return false;
                        }
                    });

                    //                    $("#<%= cvv2Number.ClientID %>").keypress(function(e) {
                    //                        if (e.which != 8 && e.which != 0 && (e.which < 48 || e.which > 57)) {
                    //                            var num = document.getElementById('<%= cvv2Number.ClientID %>');
                    //                            num.value = "";
                    //                            $("#errmsg1").html("Digits Only").show().fadeOut("slow");
                    //                            return false;
                    //                        }
                    //                    });
                });

            </script>

            <div class="" id="main-content">
                <div class="body">
                    <div class="box-outer">
                        <div class="box">
                            <table width="100%">
                                <tr>
                                    <td colspan="6">
                                        <strong style="font-family: Arial; font-size: 16pt; color: #000; width: 250px;">YOUR
                                            PURCHASE : </strong>
                                        <br />
                                        <br />
                                    </td>
                                </tr>
                                <tr style="font-family: Arial; font-size: 11pt;">
                                    <td width="60%">
                                        <b>Description</b>
                                    </td>
                                    <td width="10%">
                                        <b>Quantity </b>
                                    </td>
                                    <td width="5%">
                                    </td>
                                    <td width="10%">
                                        <b>Price</b>
                                    </td>
                                    <td width="5%">
                                    </td>
                                    <td width="10%">
                                        <b>Total </b>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="100%" colspan="6">
                                        <hr />
                                    </td>
                                </tr>
                                <tr>
                                    <td style="font-family: Arial; font-size: 12pt; font-weight: bold;">
                                        <asp:Label ID="lblDescription" runat="server" Width="350px"></asp:Label>
                                    </td>
                                    <td style="font-family: Arial; font-size: 12pt; font-weight: bold;">
                                        <asp:TextBox ID="txtQuantity" runat="server" Height="19px" Width="52px" AutoPostBack="True"
                                            OnTextChanged="txtQuantity_TextChanged" CssClass="txt_align" MaxLength="5"></asp:TextBox><br />
                                        <span style="color: Red" id="errmsg"></span>
                                    </td>
                                    <td style="font-family: Arial; font-size: 12pt; font-weight: bold;">
                                        X
                                    </td>
                                    <td style="font-family: Arial; font-size: 12pt; font-weight: bold;">
                                        <b>$<asp:Label ID="lblPrice" runat="server"></asp:Label></b>
                                    </td>
                                    <td style="font-family: Arial; font-size: 12pt; font-weight: bold;">
                                        =
                                    </td>
                                    <td style="font-family: Arial; font-size: 14px; font-weight: bold;">
                                        <b>$<asp:Label ID="lblTotalPrice" runat="server"></asp:Label></b>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                    </td>
                                    <td colspan="5">
                                        <span style="color: Red" id="errmsg2" runat="server"></span>
                                    </td>
                                </tr>
                                <tr runat="server" visible="true" id="SaveGift">
                                    <td width="100%" colspan="6" align="left">
                                        <asp:Image ID="imgGift" runat="server" ImageUrl="~/Images/gift.jpg" Width="25px"
                                            Height="25px" />
                                        <asp:LinkButton ID="lnkBtnGift" runat="server" Text="Give this Zupons as a Gift 
" OnClick="lnkBtnGift_Click"></asp:LinkButton>
                                    </td>
                                </tr>
                                <tr runat="server" visible="false" id="EditGift">
                                    <td align="left" colspan="6">
                                        <table style="background-color: #D6D6D6;" width="50%">
                                            <tr>
                                                <td>
                                                    <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/gift.jpg" Width="25px" Height="25px" />
                                                </td>
                                                <td>
                                                    <asp:Label ID="lblGiftFor" Text="" runat="server"></asp:Label>
                                                    <br />
                                                    <asp:LinkButton ID="lnkbtnEditGift" runat="server" Text="edit gift options 
" OnClick="lnkbtnEditGift_Click"></asp:LinkButton>
                                                </td>
                                                <td>
                                                    <asp:ImageButton ID="imgGiftCancel" runat="server" ImageUrl="~/Images/glossy-3d-blue-delete-icon.png"
                                                        Width="35px" Height="35px" OnClick="imgGiftCancel_Click" />
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="3">
                                        <br />
                                        <asp:Label ID="lblFinalPrice" runat="server" Text="" Font-Names="Arial" Font-Size="11pt"
                                            Visible="false"></asp:Label>
                                    </td>
                                    <td style="font-size: 14px; font-weight: bold; text-align: right; color: #f00;">
                                        <asp:Label Text="Credit" ID="Credit" runat="server"></asp:Label>
                                    </td>
                                    <td>
                                    </td>
                                    <td style="font-size: 14px; font-weight: bold; color: #f00;">
                                        <asp:Label ID="lblCredit" runat="server" Text=""></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                    </td>
                                    <td width="40%" colspan="5">
                                        <hr />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                    </td>
                                    <td colspan="3" style="font-family: Arial; font-size: 12pt; font-weight: bold; text-align: right;">
                                        <b>Your Final Price :</b>
                                    </td>
                                    <td>
                                    </td>
                                    <td style="font-family: Arial; font-size: 12pt; font-weight: bold;">
                                        <b>$<asp:Label ID="lblYourTotal" runat="server" Text=""></asp:Label></b>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="100%" colspan="6">
                                        <hr />
                                    </td>
                                </tr>
                            </table>
                            <table width="100%" runat="server" visible="true" id="PerInfo">
                                <tr>
                                    <td width="50%">
                                        <table>
                                            <tr>
                                                <td colspan="3" align="left" valign="top">
                                                    <span style="color: Red; font-weight: bold;" id="CreateAccount" runat="server"></span>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="3" align="left">
                                                    <strong style="color: #000; font-family: Arial; font-size: 11pt;">Create Your User Account:</strong>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="3" align="left">
                                                    <br />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="left">
                                                    <asp:Label ID="lbltxtName" Text="Full Name:" Font-Names="Arial" Font-Size="10pt" runat="server"></asp:Label>
                                                </td>
                                                <td align="left">
                                                    <asp:TextBox ID="txtName" runat="server" Width="200px"></asp:TextBox>
                                                </td>
                                                <td>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="left">
                                                    <asp:Label ID="lbltxtEmail" Text="Email:" Font-Names="Arial" Font-Size="10pt" runat="server"></asp:Label>
                                                </td>
                                                <td align="left">
                                                    <asp:TextBox ID="txtEmail" runat="server" Width="200px" onchange="return checkUserDuplication();"></asp:TextBox>
                                                </td>
                                                <td>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                </td>
                                                <td>
                                                    <asp:Label ID="status" runat="server"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="left" width="115px">
                                                    <asp:Label ID="lbltxtPassword" Text="Password:" Font-Names="Arial" Font-Size="10pt" runat="server"></asp:Label>
                                                </td>
                                                <td align="left">
                                                    <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" Width="200px"></asp:TextBox>
                                                </td>
                                                <td>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="left" width="115px">
                                                    <asp:Label ID="lbltxtConfirmPassword" Text="Confirm Password:" Font-Names="Arial" Font-Size="10pt" runat="server"></asp:Label>
                                                </td>
                                                <td align="left">
                                                    <asp:TextBox ID="txtConfirmPassword" runat="server" TextMode="Password" Width="200px"></asp:TextBox>
                                                </td>
                                                <td>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2">
                                                    <asp:Label ID="lblErr" runat="server" ForeColor="Red"></asp:Label>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                    <td width="50%" bgcolor="#E9FFD2">
                                        <div id="panBeforeLogin" runat="server" visible="true">
                                            <table>
                                                <tr>
                                                    <td align="center">
                                                        <strong style="color: #000; font-family: Arial; font-size: 11pt;">Already Have An Account?</strong>
                                                        <br />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="center" style="color: #000; font-family: Arial; font-size: 10pt;">
                                                        If you have purchased a Zupons before, you can sign in using your email address.
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="center">
                                                        <br />
                                                        <asp:Button runat="server" ID="Button1" Text="Sign In" CssClass="genericButton" Font-Size="11pt"
                                                            OnClick="Button1_OnClick"></asp:Button>
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                        <div id="panLogin" visible="false" runat="server">
                                            <table style="border-color: #008800; border-width: 3px; border-style: solid;" width="100%">
                                                <tr>
                                                    <td>
                                                        <asp:Login ID="LoginControl1" runat="server" Width="100%" Font-Names="Verdana" Font-Size="1.0em"
                                                            ForeColor="#333333" TextLayout="TextOnTop" OnAuthenticate="Login1_Authenticate"
                                                            FailureText="Login Unsuccessful." OnLoggedIn="Login1_LoggedIn">
                                                            <TextBoxStyle Font-Size="0.8em" />
                                                            <LoginButtonStyle BackColor="White" BorderColor="#C5BBAF" BorderStyle="Solid" BorderWidth="1px"
                                                                Font-Names="Verdana" Font-Size="0.8em" ForeColor="#1C5E55" />
                                                            <LayoutTemplate>
                                                                <asp:Panel ID="DefaultButtonPanel" DefaultButton="LoginButton" runat="server">
                                                                    <table style="width: 100%;">
                                                                        <tr>
                                                                            <td align="left" style="color: Red; font-weight: bold;" colspan="2">
                                                                                <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                                                                                <span style="color: Red; font-weight: bold;" id="LoginError" runat="server"></span>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td align="left">
                                                                                <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName" Font-Names="Arial" Font-Size="10pt">Email:</asp:Label>
                                                                            </td>
                                                                            <td align="left">
                                                                                <asp:TextBox ID="UserName" runat="server" Text="" Width="200"></asp:TextBox>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td align="left">
                                                                                <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password" Font-Names="Arial" Font-Size="10pt">Password:</asp:Label>
                                                                            </td>
                                                                            <td align="left">
                                                                                <asp:TextBox ID="Password" runat="server" TextMode="Password" Text="" Width="200"></asp:TextBox>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td align="left" colspan="2">
                                                                                <asp:LinkButton ID="btnForgetPassword" runat="server" Text="Forget Password?" OnClick="btnForgetPassword_Click" Font-Names="Arial" Font-Size="10pt"></asp:LinkButton>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td align="left" colspan="2">
                                                                                <asp:CheckBox ID="RememberMe" runat="server" Text="Remember me next time." Font-Names="Arial" Font-Size="10pt" />
                                                                            </td>
                                                                        </tr>
                                                                        <tr valign="top">
                                                                            <td align="center" colspan="2" valign="top">
                                                                                <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Sign In" CssClass="genericButton"
                                                                                    Font-Size="11pt" OnClientClick="return SignInValidate();" />
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </asp:Panel>
                                                            </LayoutTemplate>
                                                            <InstructionTextStyle Font-Italic="True" ForeColor="Black" />
                                                            <TitleTextStyle Font-Bold="True" Font-Size="0.9em" ForeColor="White" />
                                                        </asp:Login>
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <hr />
                                    </td>
                                </tr>
                            </table>
                            <table bgcolor="white" width="100%" runat="server">
                                <tr>
                                    <td colspan="5" style="font-family: Arial; font-size: 11pt; color: #000000; width: 250px;"
                                        align="left">
                                        <b>Payment Method :</b>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="5">
                                        <asp:RadioButtonList ID="rbtnPaymentType" runat="server" RepeatDirection="Horizontal"
                                            CssClass="rbtnPaypal" AutoPostBack="true" CausesValidation="false" OnSelectedIndexChanged="rbtnPaymentType_SelectedIndexChanged">
                                            <asp:ListItem Value="0" Selected="True"><img alt="Visa Mastercard Logos" border="0" height="32" src="Images/CreditCardLogo.gif"
                                                                title="Visa Mastercard Logos" width="148" /></asp:ListItem>
                                            <asp:ListItem Value="1"> <img alt="Express Checkout Logo" border="0" height="32" src="https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif"
                                                                style="width: 111px" title="Express Checkout logo" />
                                                                <span style="font-family: Arial; font-size: 10pt;">Save time. Checkout securely.<br />
                                                            &nbsp;Pay without sharing your financial information.</span></asp:ListItem>
                                        </asp:RadioButtonList>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="5">
                                        <hr />
                                    </td>
                                </tr>
                            </table>
                            <span style="color: Red; font-weight: bold;" id="OrderError" runat="server"></span>
                            <asp:Label ID="lblErrormessage" runat="server" Font-Bold="True" ForeColor="Red"></asp:Label>
                            <table width="100%" runat="server" visible="true" id="CrditeCardTable" cellpadding="0"
                                cellspacing="0">
                                <tr>
                                    <td width="50%">
                                        <table>
                                            <tr>
                                                <td>
                                                    <b>
                                                        <asp:Label ID="lblCCDeatials" Font-Names="Arial" Font-Size="11pt" Text="Credit Card Details:"
                                                            runat="server"></asp:Label>
                                                    </b>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="lblfirstName" Text="First Name:" Font-Names="Arial" Font-Size="10pt"
                                                        runat="server"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:TextBox ID="firstName" runat="server" Width="200px"></asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="lbllastName" Text="Last Name:" Font-Names="Arial" Font-Size="10pt"
                                                        runat="server"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:TextBox ID="lastName" runat="server" Width="200px"></asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="lblcreditCardType" Text="Card Type:" Font-Names="Arial" Font-Size="10pt"
                                                        runat="server"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:DropDownList runat="server" ID="creditCardType" Width="200px">
                                                        <asp:ListItem Selected="True" Value="Visa">Visa</asp:ListItem>
                                                        <asp:ListItem Value="MasterCard">MasterCard</asp:ListItem>
                                                        <asp:ListItem Value="Discover">Discover</asp:ListItem>
                                                        <asp:ListItem Value="Amex">American Express</asp:ListItem>
                                                    </asp:DropDownList>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="lblcreditCardNumber" Text="Card Number:" Font-Names="Arial" Font-Size="10pt"
                                                        runat="server"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:TextBox ID="creditCardNumber" runat="server" Text="" Width="200px"></asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="lblExpirationDate" Text="Expiration Date:" Font-Names="Arial" Font-Size="10pt"
                                                        runat="server"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:DropDownList runat="server" ID="expDateMonth">
                                                        <asp:ListItem Value="1">01</asp:ListItem>
                                                        <asp:ListItem Value="2">02</asp:ListItem>
                                                        <asp:ListItem Value="3">03</asp:ListItem>
                                                        <asp:ListItem Value="4">04</asp:ListItem>
                                                        <asp:ListItem Value="5">05</asp:ListItem>
                                                        <asp:ListItem Value="6">06</asp:ListItem>
                                                        <asp:ListItem Value="7">07</asp:ListItem>
                                                        <asp:ListItem Value="8">08</asp:ListItem>
                                                        <asp:ListItem Value="9">09</asp:ListItem>
                                                        <asp:ListItem Value="10">10</asp:ListItem>
                                                        <asp:ListItem Value="11">11</asp:ListItem>
                                                        <asp:ListItem Value="12">12</asp:ListItem>
                                                    </asp:DropDownList>
                                                    <asp:DropDownList runat="server" ID="expDateYear">
                                                    </asp:DropDownList>
                                                    <asp:HiddenField ID="hdnMonth" runat="server" />
                                                    <asp:HiddenField ID="hdnYear" runat="server" />
                                                    <span id="divMonthYearErr" style="color: Red"></span>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="lblcvv2Number" Text="Card Verification Number:" Font-Names="Arial"
                                                        Font-Size="10pt" runat="server"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:TextBox ID="cvv2Number" runat="server" MaxLength="3" Width="60px" onchange="javascript:return ValidateForm()"></asp:TextBox>
                                                    <span style="color: Red" id="errmsg1" runat="server"></span>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                    <td width="50%" valign="top">
                                        <table>
                                            <tr>
                                                <td>
                                                    <b style="color: #000000;">
                                                        <asp:Label ID="lblBillingDetails" Text="Billing Address:" Font-Names="Arial" Font-Size="11pt"
                                                            runat="server"></asp:Label></b>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="lbladdress1" Text="Address 1:" Font-Names="Arial" Font-Size="10pt"
                                                        runat="server"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="left">
                                                    <asp:TextBox ID="address1" runat="server" Width="200px"></asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="lbladdress2" Text="Address 2:" Font-Names="Arial" Font-Size="10pt"
                                                        runat="server"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="left">
                                                    <asp:TextBox ID="address2" runat="server" Width="200px"></asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="lblcity" Text="City:" Font-Names="Arial" Font-Size="10pt" runat="server"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="left">
                                                    <asp:TextBox ID="city" runat="server" Width="200px"></asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="lblstate" Text="State:" Font-Names="Arial" Font-Size="10pt" runat="server"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="left">
                                                    <select id="state" runat="server">
                                                        <option value="AK">AK</option>
                                                        <option value="AL">AL</option>
                                                        <option value="AR">AR</option>
                                                        <option value="AZ">AZ</option>
                                                        <option value="CA" selected>CA</option>
                                                        <option value="CO">CO</option>
                                                        <option value="CT">CT</option>
                                                        <option value="DC">DC</option>
                                                        <option value="DE">DE</option>
                                                        <option value="FL">FL</option>
                                                        <option value="GA">GA</option>
                                                        <option value="HI">HI</option>
                                                        <option value="IA">IA</option>
                                                        <option value="ID">ID</option>
                                                        <option value="IL">IL</option>
                                                        <option value="IN">IN</option>
                                                        <option value="KS">KS</option>
                                                        <option value="KY">KY</option>
                                                        <option value="LA">LA</option>
                                                        <option value="MA">MA</option>
                                                        <option value="MD">MD</option>
                                                        <option value="ME">ME</option>
                                                        <option value="MI">MI</option>
                                                        <option value="MN">MN</option>
                                                        <option value="MO">MO</option>
                                                        <option value="MS">MS</option>
                                                        <option value="MT">MT</option>
                                                        <option value="NC">NC</option>
                                                        <option value="ND">ND</option>
                                                        <option value="NE">NE</option>
                                                        <option value="NH">NH</option>
                                                        <option value="NJ">NJ</option>
                                                        <option value="NM">NM</option>
                                                        <option value="NV">NV</option>
                                                        <option value="NY">NY</option>
                                                        <option value="OH">OH</option>
                                                        <option value="OK">OK</option>
                                                        <option value="OR">OR</option>
                                                        <option value="PA">PA</option>
                                                        <option value="RI">RI</option>
                                                        <option value="SC">SC</option>
                                                        <option value="SD">SD</option>
                                                        <option value="TN">TN</option>
                                                        <option value="TX">TX</option>
                                                        <option value="UT">UT</option>
                                                        <option value="VA">VA</option>
                                                        <option value="VT">VT</option>
                                                        <option value="WA">WA</option>
                                                        <option value="WI">WI</option>
                                                        <option value="WV">WV</option>
                                                        <option value="WY">WY</option>
                                                        <option value="AA">AA</option>
                                                        <option value="AE">AE</option>
                                                        <option value="AP">AP</option>
                                                        <option value="AS">AS</option>
                                                        <option value="FM">FM</option>
                                                        <option value="GU">GU</option>
                                                        <option value="MH">MH</option>
                                                        <option value="MP">MP</option>
                                                        <option value="PR">PR</option>
                                                        <option value="PW">PW</option>
                                                        <option value="VI">VI</option>
                                                    </select>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="lblZip" Text=" ZIP Code:" Font-Names="Arial" Font-Size="10pt" runat="server"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="left">
                                                    <asp:TextBox ID="Zip" runat="server" Width="80px"></asp:TextBox>
                                                    (5 or 9 digits)
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="left" style="font-family: Arial; font-size: 10pt;">
                                                    Country: &nbsp;&nbsp;&nbsp; United States
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                            <%--  <table id="PaypalTable" runat="server" visible="false" width="100%">
                                <tr>
                                    <td align="left" colspan="2">
                                        <b>Billing Address:</b>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="80px">
                                        <asp:Label ID="lblName" Text="Name:" runat="server"></asp:Label>
                                    </td>
                                    <td align="left">
                                        <asp:TextBox ID="Name" runat="server" Width="200px"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="left">
                                        <asp:Label ID="lblStreet" Text="Street:" runat="server"></asp:Label>
                                    </td>
                                    <td align="left">
                                        <asp:TextBox ID="Street" runat="server" Width="200px"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="left">
                                        <asp:Label ID="lblpaypal_City" Text="City:" runat="server"></asp:Label>
                                    </td>
                                    <td align="left">
                                        <asp:TextBox ID="paypal_City" runat="server" Width="200px"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="left">
                                        State:
                                    </td>
                                    <td align="left">
                                        <select id="Select1" runat="server">
                                            <option value="AK">AK</option>
                                            <option value="AL">AL</option>
                                            <option value="AR">AR</option>
                                            <option value="AZ">AZ</option>
                                            <option value="CA" selected>CA</option>
                                            <option value="CO">CO</option>
                                            <option value="CT">CT</option>
                                            <option value="DC">DC</option>
                                            <option value="DE">DE</option>
                                            <option value="FL">FL</option>
                                            <option value="GA">GA</option>
                                            <option value="HI">HI</option>
                                            <option value="IA">IA</option>
                                            <option value="ID">ID</option>
                                            <option value="IL">IL</option>
                                            <option value="IN">IN</option>
                                            <option value="KS">KS</option>
                                            <option value="KY">KY</option>
                                            <option value="LA">LA</option>
                                            <option value="MA">MA</option>
                                            <option value="MD">MD</option>
                                            <option value="ME">ME</option>
                                            <option value="MI">MI</option>
                                            <option value="MN">MN</option>
                                            <option value="MO">MO</option>
                                            <option value="MS">MS</option>
                                            <option value="MT">MT</option>
                                            <option value="NC">NC</option>
                                            <option value="ND">ND</option>
                                            <option value="NE">NE</option>
                                            <option value="NH">NH</option>
                                            <option value="NJ">NJ</option>
                                            <option value="NM">NM</option>
                                            <option value="NV">NV</option>
                                            <option value="NY">NY</option>
                                            <option value="OH">OH</option>
                                            <option value="OK">OK</option>
                                            <option value="OR">OR</option>
                                            <option value="PA">PA</option>
                                            <option value="RI">RI</option>
                                            <option value="SC">SC</option>
                                            <option value="SD">SD</option>
                                            <option value="TN">TN</option>
                                            <option value="TX">TX</option>
                                            <option value="UT">UT</option>
                                            <option value="VA">VA</option>
                                            <option value="VT">VT</option>
                                            <option value="WA">WA</option>
                                            <option value="WI">WI</option>
                                            <option value="WV">WV</option>
                                            <option value="WY">WY</option>
                                            <option value="AA">AA</option>
                                            <option value="AE">AE</option>
                                            <option value="AP">AP</option>
                                            <option value="AS">AS</option>
                                            <option value="FM">FM</option>
                                            <option value="GU">GU</option>
                                            <option value="MH">MH</option>
                                            <option value="MP">MP</option>
                                            <option value="PR">PR</option>
                                            <option value="PW">PW</option>
                                            <option value="VI">VI</option>
                                        </select>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="left">
                                        <asp:Label ID="lblpaypal_ZipCode" Text="ZIP Code:" runat="server"></asp:Label>
                                    </td>
                                    <td align="left">
                                        <asp:TextBox ID="paypal_ZipCode" runat="server" Width="80px"></asp:TextBox>
                                        (5 or 9 digits)
                                    </td>
                                </tr>
                                <tr>
                                    <td align="left">
                                        Country:
                                    </td>
                                    <td align="left">
                                        United State
                                    </td>
                                </tr>
                            </table>--%>
                            <table width="100%">
                                <tr runat="server" id="tdRefer" visible="false">
                                    <%--  <td colspan="2">
                                        <asp:CheckBox ID="chkUseReferAmount" runat="server" />
                                        <asp:Label ID="CreditAmount" Text="" runat="server" Font-Bold="true"></asp:Label>
                                    </td>--%>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Button ID="PayButton" runat="server" CausesValidation="true" CssClass="genericButton"
                                            OnClick="PayButton_Click" Text="Submit" Font-Size="11pt" Width="120px" OnClientClick="return OrderDetailsValidate();" />
                                    </td>
                                    <td align="left">
                                        <asp:Button ID="lnkbtnCancel" runat="server" CssClass="genericButton" Font-Size="11pt"
                                            Width="160px" OnClick="lnkbtnCancel_Click" Text="Cancel" />
                                    </td>
                            </table>
                            <asp:LinkButton ID="lnkMore1" runat="server" Style="display: none">View more Cities</asp:LinkButton>
                            <asp:Panel ID="PanelSubscriptionPopup1" runat="server" Style="border: 2px solid #87ae53;
                                width: 500px; height: 300px; background-color: #CCFFCC; font-family: Arial; display: none;"
                                EnableViewState="True">
                                <div style="float: right; margin-top: -20px; right: -10px; top: 0;">
                                    <asp:ImageButton ID="imgClose" runat="server" Width="40px" Height="40px" ImageUrl="~/Images/glossy-3d-blue-delete-icon.png"
                                        OnClientClick="return CloseGiftWindow();" /></div>
                                <table>
                                    <tr>
                                        <td colspan="3" align="center">
                                            <b>Gift</b>
                                            <br />
                                            Options Fill out the form below and give the gift of Zupons!<br />
                                            <br />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <b>To:</b>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtTo" runat="server" Width="180px"></asp:TextBox>
                                        </td>
                                        <td>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtTo"
                                                ErrorMessage="To is required." ToolTip="To is required." ValidationGroup="RegGift"></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <b>From:</b><br />
                                            (Name you want the recipient to see.)
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtFrom" runat="server" Width="180px"></asp:TextBox>
                                        </td>
                                        <td>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtFrom"
                                                ErrorMessage="From is required." ToolTip="From is required." ValidationGroup="RegGift"></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <b>Message:</b>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtMessage" runat="server" TextMode="MultiLine"></asp:TextBox>
                                        </td>
                                        <td>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtMessage"
                                                ErrorMessage="Message is required." ToolTip="From is required." ValidationGroup="RegGift"></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <b>Delivery:</b>
                                        </td>
                                        <td colspan="2">
                                            <asp:RadioButtonList ID="rbtnDelivery" runat="server" RepeatDirection="Horizontal"
                                                OnSelectedIndexChanged="rbtnDelivery_SelectedIndexChanged" AutoPostBack="true"
                                                CausesValidation="false">
                                                <asp:ListItem Value="0" Selected="True">Email It</asp:ListItem>
                                                <asp:ListItem Value="1">I&apos;ll print it myself</asp:ListItem>
                                            </asp:RadioButtonList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                        </td>
                                        <td>
                                            <b>To:</b><asp:TextBox ID="txtToEmail" runat="server" Width="160px"></asp:TextBox><br />
                                        </td>
                                        <td>
                                            <asp:Label ID="lblGiftErr" runat="server" Text="" ForeColor="Red"></asp:Label><br />
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtToEmail"
                                                ErrorMessage="You must enter an valid email address" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                                ValidationGroup="RegGift">
                                            </asp:RegularExpressionValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2">
                                            <asp:Button ID="btnGiftSave" runat="server" Text="Save" Font-Bold="true" ValidationGroup="RegGift"
                                                OnClick="btnGiftSave_Click" ForeColor="White" BackColor="Green" BorderStyle="None" />&nbsp;&nbsp;&nbsp;&nbsp;
                                            <asp:Button ID="btnGiftCancel" runat="server" Text="Cancel" BackColor="Green" BorderStyle="None"
                                                Font-Bold="true" OnClientClick="return CloseGiftWindow();" CausesValidation="false"
                                                ForeColor="White" />
                                        </td>
                                    </tr>
                                </table>
                                <div align="center">
                                    <asp:Button ID="OkButton1" runat="server" Text="OK" Style="display: none" CausesValidation="false" />
                                    <asp:Button ID="CancelButton1" runat="server" Style="display: none" Text="Close" />
                                </div>
                            </asp:Panel>
                            <cc1:ModalPopupExtender ID="divAuthentication" runat="server" TargetControlID="lnkMore1"
                                PopupControlID="PanelSubscriptionPopup1" BehaviorID="divAuthentication" DropShadow="false"
                                CancelControlID="CancelButton1" BackgroundCssClass="modalBackground" />
                        </div>
                        <div class="box-inner">
                        </div>
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel2"
        DisplayAfter="2000" DynamicLayout="true">
        <ProgressTemplate>
            <div id="myDiv1" style="height: 1568px; width: 100%; top: 0; z-index: 10000; background-color: Transparent
                opacity: 0.5; position: absolute;" runat="server">
            </div>
            <div id="myimgdivLoading" align="center" valign="middle" style="padding: 0px; top: 450px;
                left: 25%; position: absolute; visibility: visible; vertical-align: middle; border-width: medium;
                background-color: #CCFFCC; width: 50%; border-width: 2px; border-style: solid;
                border-color: Black;" runat="server">
                <img src="Images/loading.gif" align="middle" />
                <h4>
                    <div style="color: Black">
                        Please Wait Processing Your Request.....!</div>
                    <h4>
                    </h4>
                    <h4>
                    </h4>
                </h4>
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>
</asp:Content>
